package com.mes.service.jy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.DaysheduMapper;
import com.mes.entity.jy.Dayshedu;
import com.mes.entity.jy.Queryjy;

/**
 * @ClassName: DaysheduServiseImpl 
 * @Description:排产单业务层实现类
 * @Author jy
 * @Date 2017年12月29日 上午11:35:03 
 * @version 1.0
 */
@Service
@Transactional
public class DaysheduServiseImpl implements DaysheduServise{

	@Resource
	private DaysheduMapper daysheduMapper;
	
	@Override
	public int createDayshedu(Dayshedu dayshedu) {
		return daysheduMapper.createDayshedu(dayshedu);
	}

	@Override
	public int countDayshedu(Queryjy queryjy) {
		return daysheduMapper.countDayshedu(queryjy);
	}

	@Override
	public List<Dayshedu> selectDaysheduPagine(Queryjy queryjy) {
		return daysheduMapper.selectDaysheduPagine(queryjy);
	}

	@Override
	public Dayshedu selectDaysheduByid(Long id) {
		return daysheduMapper.selectDaysheduByid(id);
	}

	@Override
	public int deleteDayshedu(String ids) {
		return daysheduMapper.deleteDayshedu(ids);
	}

	@Override
	public void editDaySheduState(Dayshedu dayshedu) {
		daysheduMapper.editDaySheduState(dayshedu);
	}

	@Override
	public int selectDaysheduByDayshedunum(String dayshedunum) {
		return daysheduMapper.selectDaysheduByDayshedunum(dayshedunum);
	}

	@Override
	public int selectDaysheduByManay(Dayshedu dayshedu) {
		return daysheduMapper.selectDaysheduByManay(dayshedu);
	}

	@Override
	public int editDayshedu(Dayshedu dayshedu) {
		return daysheduMapper.editDayshedu(dayshedu);
	}
	
}
